<?php

include_once ('../utilities.php')

?>
<!DOCTYPE html>
<html>
<head>
	<link rel="stylesheet" type="text/css" href="../reset.css">
	<link rel="stylesheet" type="text/css" href="../mainStyle.css">
	<link rel="stylesheet" type="text/css" href="../searchButton.css">
	<title>SHPE</title>
</head>
<body>

	<div id="container">
		<?php

$root = '../';
include_once ('../header.php')

?>
        
		<div id="page-body">
			<?php

if (!empty($_SESSION['LoggedIn']) && !empty($_SESSION['User']))
{
    //User is logged in, display their info
    $user = unserialize($_SESSION['User']);
    $user->displayImage(200, 200);

?>
				<br>				
				<p> <b><?=

    $user->getEmail()

?>'s Account Page</b>.</p>
				<p> First name: <?=

    $user->getFirstName()

?> </p>
				<p> Last name: <?=

    $user->getLastName()

?> </p>
				<br>
				<!--Links to change user attributes-->
				<!--<p> <a href="./emailchange/"> Change Email </a> </p>-->
				<p> <a href="./passwordchange/"> Change Password </a> </p>
				<p> <a href="./namechange/"> Change Name </a> </p>
				<!--<p> <a href="./photochange/"> Change Photo </a> </p>-->
				<?php

    if ($user->getPermissions() == 6)
    {

?>
					<p> <a href="./notification/"> Respond to chapter requests </a> </p>
					<p> <a href="./permissionchange/"> Change user permissions </a> </p>
					<?php

    }
} else
{

?>
						
			   <p>Please login in to view this page.</p>
					
			   <?php

}

?>
		</div>
		
		<?php

include_once ('../footer.php')

?>
	</div>

</body>
</html>